package com.vnas.adapter;

import java.util.ArrayList;
import java.util.List;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import com.vnas.fragment.MyFragment;

public class PagerAdapter extends FragmentPagerAdapter{

	List<MyFragment> fList = new ArrayList<MyFragment>();
	public PagerAdapter(FragmentManager fm) {
		super(fm);
		
	}
	
	public PagerAdapter(FragmentManager fragmentManager, List<MyFragment> fl) {
		super(fragmentManager);
		this.fList = fl;
	}

	@Override
	public Fragment getItem(int arg0) {
		
		return fList.get(arg0);
	}

	@Override
	public int getCount() {
		
		return fList.size();
	}

}
